package classtest;

import classtst_domain.MyDate;

public class Demo6 {
    public static void main(String[] args) {
        MyDate myDate = new MyDate();
        // 调用属性
        System.out.println(myDate.year);
        System.out.println(myDate.month);
        System.out.println(myDate.day);
        // 调用方法
        myDate.showDate();
        System.out.println(myDate.isLeapYear());
    }
}
